package com.charles.video.common.log.service;

import com.charles.video.api.domain.MemberLog;
import com.charles.video.api.feignService.RemoteLogService;
import com.charles.video.common.core.constant.SecurityConstants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class AsyncLogService {

    @Autowired
    private RemoteLogService remoteLogService;

    @Async
    public void saveSysLog(MemberLog memberLog) {
        remoteLogService.saveLog(memberLog, SecurityConstants.INNER);
    }
}
